package com.block.channelext.enums;

import cn.hutool.core.util.StrUtil;
import lombok.Getter;

@Getter
public enum ChannelEnum {

    JIZHUN("ERP6WQ", "极准"),
    BAIDUFLOW("1ASONC", "百度信息流"),

    SUOZHI("8IM34I", "索知"),
    SUOZHI1("WPJED2", "索知1"),

    XIANGDIAN("25QGKT", "享点"),

    BiANXIANMIAO("7OLWQO", "变现猫"),
    BiANXIANMIAO1("HCNYZB", "变现猫1"),
    BiANXIANMIAO2("0UZWN6", "变现猫2"),

    AITUI("9NMY0E", "艾推"),
    AITUI1("7VRJ3D", "艾推1"),
    AITUI2("AGU4VP", "艾推2"),

    TUIA("OCLELD", "推啊"),
    ;

    String channelCode;
    String channelName;

    ChannelEnum(String channelCode, String channelName){
        this.channelCode = channelCode;
        this.channelName = channelName;
    }

    public static boolean contains(String channelCode){
        for (ChannelEnum value : values()) {
            if (StrUtil.equals(value.getChannelCode(), channelCode)){
                return true;
            }
        }
        return false;
    }

}
